home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / qsort.man < prev    next >
Encoding:
Text File  |  1989-02-01  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. QSORT                 C Library Procedures                  QSORT
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      qsort - quicker sort
  10.  
  11. SSYYNNOOPPSSIISS
  12.      qqssoorrtt((bbaassee,, nneell,, wwiiddtthh,, ccoommppaarr))
  13.      cchhaarr **bbaassee;;
  14.      iinntt ((**ccoommppaarr))(());;
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      _Q_s_o_r_t is an implementation of the quicker-sort algorithm.
  18.      The first argument is a pointer to the base of the data; the
  19.      second is the number of elements; the third is the width of
  20.      an element in bytes; the last is the name of the comparison
  21.      routine to be called with two arguments which are pointers
  22.      to the elements being compared.  The routine must return an
  23.      integer less than, equal to, or greater than 0 according as
  24.      the first argument is to be considered less than, equal to,
  25.      or greater than the second.
  26.  
  27. SSEEEE AALLSSOO
  28.      sort(1)
  29.  
  30. BBUUGGSS
  31.      The comparison routine may not itself call _q_s_o_r_t.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 10, 1987                         1
  64.  
  65.  
  66.  
  67.